package com.spark.incoicings.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spark.invoicings.entity.Inventorys;
import com.spark.invoicings.utils.Result;

import java.util.List;
import java.util.Map;

public interface InventorysService extends IService<Inventorys> {

    /**
     * 根据id获取盘点单
     * @param id
     * @return
     */
    Inventorys selectInventorysById(Integer id);

    /**
     * 查询所有盘点单
     * @param map
     * @return
     */
    List<Inventorys> selectInventorysAll(Map<String, Object> map);

    /**
     * 添加盘点单
     * @param inventorys
     * @return
     */
    Result addInventorys(Inventorys inventorys);

    /**
     * 更新盘点单
     * @param inventorys
     * @return
     */
    boolean updateInventorysById(Inventorys inventorys);
}
